package com.webservice.service;

import com.webservice.dto.ResponseCommonForm;
import org.dom4j.DocumentException;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class RmSetDataApiService {

//    @Test
    public void send() throws IOException, DocumentException {
        Map<String, String> map = new HashMap<String, String>();
        map.put("QUEUE_ID","202012340001");
        map.put("TRX_DATE","202004270002");
        map.put("SOURCE_NUM","202012340002");
        map.put("SR_TYPE","Issue");
        map.put("ORG_ID","102");
        map.put("STORE_ID","10001");
        map.put("ERP_MO","erpmo");
        map.put("ERP_ID","erpid");
        map.put("MTRL_ID","29113");
        map.put("MTRL_NO","1010010000113");
        map.put("QUANTITY","9");
        map.put("REMARK","盘古测试备注");
        map.put("LOT_NO","20200701");
        map.put("MUNIT","PCS");
        map.put("OPERATION_SEQ_NUM","1");
        RmGetDataApiService  rmGetDataApiService = new RmGetDataApiService();
        String docType = "CUX_OM_SHIPPING_I";
        List<ResponseCommonForm> result = rmGetDataApiService.getDate(docType, map);
        if( result != null && result.size() > 0){
            for (int i = 0 ; i<result.size(); i++){
                System.out.println(result.get(i));
            }
        }else {
            System.out.println("请求返回信息为空");
        }
    }
}
